package apps.sim.util.thread;

import java.util.Calendar;

public class ServiceProxy {
	private final String target;
	private final String operation;
	private final String headers;
	private final String user;
	private final String password;
	private final String request;

	// out

	private long start;
	private long end;
	private String response;

	public ServiceProxy(String target, String operation, String headers, String user, String password, String request) {
		this.target = target;
		this.operation = operation;
		this.headers = headers;
		this.user = user;
		this.password = password;
		this.request = request;
	}

	public void setStart() {
		this.start = Calendar.getInstance().getTimeInMillis();
	}

	public void setEnd() {
		this.end = Calendar.getInstance().getTimeInMillis();
	}

	public void setResponse(String response) {
		this.response = response;
	}

	public String getTarget() {
		return target;
	}

	public String getOperation() {
		return operation;
	}

	public String getHeaders() {
		return headers;
	}

	public String getUser() {
		return user;
	}

	public String getPassword() {
		return password;
	}

	public String getRequest() {
		return request;
	}

	public long getStart() {
		return start;
	}

	public long getEnd() {
		return end;
	}

	public String getResponse() {
		return response;
	}

}
